#ifndef _X_LOG_EVENT_H
#define _X_LOG_EVENT_H
#include "xLogLevel.h"
#include <iostream>
namespace XLog
{

    /*
        const char* 	file,
        int 			line,
        const char* 	func,
        LogLevel 		level,
        uint32			id,
        const char* 	fmt,
        ...
    */
    class XLogEvent
    {
    public:
        XLogEvent(const char* fileNmae,const uint32_t line,const char* funcName,const XLogLevel::Level level,const uint32_t threadId ,std::string content):
        strFileName(fileNmae),
        dwLine(line),
        strFuncName(funcName),
        level(level),
        dwThreadId(threadId),
        strContent(content)
        {}
    public:
        const uint32_t dwTimeStamp = 0;
        const uint32_t dwThreadId;
        const uint32_t dwLine;
        const XLogLevel::Level level;
        const char* strFuncName;
        const char* strFileName;
        std::__sso_string strContent;
    };
}

#endif